package com.class03._extends;

/**
 * @ClassDescription:
 * @JdkVersion: 17
 * @Author: yxy
 * @Created: 2024/4/2 11:15
 */
public class Student extends Person {

//    //    属性
//    String name;
//    int age;
//    String school;


    //    方法
    @Override
    public void eat() {
        System.out.println("吃饭HAHAHHAHA");
    }
//    public void sleep() {
//        System.out.println("睡觉");
//    }
//    public void show() {
//        System.out.println("姓名：" + name + "，年龄：" + age);
//    }

    public void study() {
        System.out.println("好好学习");
    }

    public void show1() {
        System.out.println("年龄是：" + getAge());
    }

}
